﻿  //引进TT模板的命名空间
//使用TT模板生成代码的片段
using System.Text;
using System.Threading.Tasks;
using OilWaterSystem.DAL;
using OilWaterSystem.IBLL;
using OilWaterSystem.IDAL;
using OilWaterSystem.Model;

namespace OilWaterSystem.BLL
{
	//在这里需要一个for循环来遍历数据库中所有的表放置在下面即可，这样就实现了所有的表对应的仓储显示出来了。
	 public partial class Tb_CommonWellService : BaseService<Tb_CommonWell>, ITb_CommonWellService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_CommonWellRepository;
        }
	}
	 public partial class Tb_DepartmentService : BaseService<Tb_Department>, ITb_DepartmentService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_DepartmentRepository;
        }
	}
	 public partial class Tb_Exception_LogService : BaseService<Tb_Exception_Log>, ITb_Exception_LogService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Exception_LogRepository;
        }
	}
	 public partial class Tb_Gas_WellService : BaseService<Tb_Gas_Well>, ITb_Gas_WellService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Gas_WellRepository;
        }
	}
	 public partial class Tb_Login_LogService : BaseService<Tb_Login_Log>, ITb_Login_LogService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Login_LogRepository;
        }
	}
	 public partial class Tb_Oil_WellService : BaseService<Tb_Oil_Well>, ITb_Oil_WellService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Oil_WellRepository;
        }
	}
	 public partial class Tb_Operation_LogService : BaseService<Tb_Operation_Log>, ITb_Operation_LogService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Operation_LogRepository;
        }
	}
	 public partial class Tb_RoleService : BaseService<Tb_Role>, ITb_RoleService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_RoleRepository;
        }
	}
	 public partial class Tb_UserService : BaseService<Tb_User>, ITb_UserService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_UserRepository;
        }
	}
	 public partial class Tb_Water_WellService : BaseService<Tb_Water_Well>, ITb_Water_WellService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Water_WellRepository;
        }
	}
	 public partial class Tb_Well_TypeService : BaseService<Tb_Well_Type>, ITb_Well_TypeService
    {
		//只要想操作数据库，我们只要拿到DbSession就行
        public override void SetCurrentRepository()
        {
            CurrentRepository = _DbSession.Tb_Well_TypeRepository;
        }
	}
}